package com.cowin.sys.service.impl;

import com.cowin.sys.dao.TmBasUlocMapper;
import com.cowin.sys.model.TmBasUloc;
import com.cowin.sys.service.TmBasUlocService;
import com.cowin.base.AbstractServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Map;


/**
 * Created by  on 2020/01/11.
 * @author CodeGenerator
 */
@Slf4j
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class TmBasUlocServiceImpl extends AbstractServiceImpl<TmBasUloc> implements TmBasUlocService {

    @Resource
    private TmBasUlocMapper tmBasUlocMapper;

    @Override
    public TmBasUloc getUlocByUlocNo(String ulocNo) {
        return tmBasUlocMapper.getUlocByUlocNo(ulocNo);
    }

    @Override
    public Map<String, String> getLineUlocNoBycodeValue(String codeValue) {
        return tmBasUlocMapper.getLineUlocNoBycodeValue(codeValue);
    }
}
